-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Factor out job cards into Composables for new data entry points #2892
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @sufyanAbbasi so cool to see this is working! A few suggestions/tweaks. Once we do those, I think we can submit as is without too much UI churn for now. @rawbzz Is still finalizing the latest designs, but what you have here takes us much closer.
ground/src/main/java/com/google/android/ground/ui/theme/Color.kt
Outdated
Show resolved
Hide resolved
ground/src/main/java/com/google/android/ground/ui/home/mapcontainer/cards/JobSelectionDialog.kt
Outdated
Show resolved
Hide resolved
...c/main/java/com/google/android/ground/ui/home/mapcontainer/HomeScreenMapContainerFragment.kt
Outdated
Show resolved
Hide resolved
# Conflicts: # ground/src/main/java/com/google/android/ground/ui/home/mapcontainer/HomeScreenMapContainerFragment.kt
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2892 +/- ##
============================================
- Coverage 64.20% 62.99% -1.22%
- Complexity 1276 1289 +13
============================================
Files 272 273 +1
Lines 6532 6731 +199
Branches 909 935 +26
============================================
+ Hits 4194 4240 +46
- Misses 1737 1872 +135
- Partials 601 619 +18
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, @sufyanAbbasi 🥳 A few nits, otherwise LGTM!
...c/main/java/com/google/android/ground/ui/home/mapcontainer/HomeScreenMapContainerFragment.kt
Outdated
Show resolved
Hide resolved
...c/main/java/com/google/android/ground/ui/home/mapcontainer/HomeScreenMapContainerFragment.kt
Outdated
Show resolved
Hide resolved
ground/src/main/java/com/google/android/ground/ui/home/mapcontainer/jobs/MapUiData.kt
Outdated
Show resolved
Hide resolved
…ound-android into sufy/2446/new-loi-flow
Added "add_site" and two more strings (untranslated)
Added "add_site" and two more strings (untranslated)
Remaining translations added ("unnamed_job" and "job_site_icon").
Remaining translations added ("unnamed_job" and "job_site_icon").
Remaining translations added ("unnamed_job" and "job_site_icon").
Would you be able to add tests for modified lines? We can focus on the ones reported here by codecov if it helps. |
@sufyanAbbasi RFAL? |
Sorry I had to take a little time to merge in the ground --> app file change and added a test file to cover the core view model logic. I think we're good to go! |
Hi @shobhitagarwal1612! PTAL? |
...ain/java/com/google/android/ground/ui/home/mapcontainer/jobs/DataCollectionEntryPointData.kt
Outdated
Show resolved
Hide resolved
.../main/java/com/google/android/ground/ui/home/mapcontainer/HomeScreenMapContainerViewModel.kt
Show resolved
Hide resolved
app/src/main/java/com/google/android/ground/ui/home/mapcontainer/jobs/JobMapAdapter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/google/android/ground/ui/home/mapcontainer/jobs/JobMapAdapter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/google/android/ground/ui/home/mapcontainer/jobs/JobMapAdapter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/google/android/ground/ui/map/gms/GoogleMapsFragment.kt
Outdated
Show resolved
Hide resolved
# Conflicts: # app/src/main/res/values-pt/strings.xml
# Conflicts: # app/src/main/java/com/google/android/ground/ui/home/mapcontainer/HomeScreenMapContainerFragment.kt
Fixes #2446
Reimplements the entire add LOI/selection UX to match the new designs (see above issue).
add_data
andadd_site
.@gino-m PTAL?